package com.qf.conf;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class RibbonConfig {

    /**
     * 自定义的负载均衡规则
     * @return
     */
    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
